package com.hzw.saas.web.app.user.dto;

import java.io.Serializable;
import javax.validation.constraints.Pattern;

import com.hzw.saas.common.util.AccountValidatorUtil;
import org.springframework.web.multipart.MultipartFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zzl
 * @since 08/23/2021
 */
@Data
@ApiModel("客户意见登记")
public class CustomerComplainDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 客户姓名
     */
    @ApiModelProperty(value = "客户姓名")
    private String customerName;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String phoneNo;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    @Pattern(regexp = AccountValidatorUtil.REGEX_EMAIL_OR_BLANK, message = "邮箱格式不正确")
    private String email;

    /**
     * 意见描述
     */
    @ApiModelProperty(value = "意见描述")
    private String description;

    /**
     * 附件
     */
    @ApiModelProperty(value = "附件")
    private MultipartFile[] files;

}
